﻿<%@ Page Language="C#" AutoEventWireup="True"
 CodeBehind="UrlDictionaryList.aspx.cs" Inherits="Medianamik.UI.ConfigManagement.UrlDictionaryList"
  MasterPageFile="../MasterPages/MedianamikModule.Master" %>

<asp:Content ContentPlaceHolderID="CenterContent" runat="server">
    <asp:UpdatePanel runat="server">
        <ContentTemplate>
            <p><asp:DropDownList runat="server" Id="ddlDomains" OnSelectedIndexChanged="ddlDomains_SelectedIndexChanged"
             AutoPostBack = "true" >
            </asp:DropDownList></p>
            
            <telerik:RadGrid runat="server" ID="GridUrls" EnableEmbeddedSkins="false" Skin="Medianamik" 
	        AutoGenerateColumns="false" AllowPaging="True" PageSize="30"
	        OnPageIndexChanged = "GridUrls_PageIndexChanged"
	        OnNeedDataSource= "GridUrls_NeedDataSource"
	        >
		        <MasterTableView>
		            <PagerStyle Mode="NumericPages"  Position="TopAndBottom" ></PagerStyle>
			        <Columns>
			            <telerik:GridTemplateColumn  >
			                <HeaderTemplate >
			                    <asp:Literal runat="server" Text="<%$ Resources: Medianamik_ConfigurationManagement, UrlColumn %>"></asp:Literal>
			                    <med:GridColumnFilter runat="server" Value ='<%# UrlFilter %>'  OnFilter="UrlFilter_Filter" id="UrlFilter"></med:GridColumnFilter>
			                </HeaderTemplate>
			                <ItemTemplate >
			                    <a href='<%# Eval("RequestedUrl") %>' ><%# FormatUrlForDisplay((Uri)Eval("RequestedUrl")) %></a>
			                </ItemTemplate>  
			            </telerik:GridTemplateColumn>
				            <telerik:GridBoundColumn DataField="RewritedPath"></telerik:GridBoundColumn>
			        </Columns>
			        <NoRecordsTemplate>
			            <asp:Literal ID="NoRecords" runat="server" Text="<%$ Resources: Medianamik_ContentManagement, NoRecordsToDisplay %>" />
			        </NoRecordsTemplate>
		        </MasterTableView>
		        <ClientSettings EnableRowHoverStyle="true" >
		            <Selecting  />
		        </ClientSettings>
	        </telerik:RadGrid>
	    </ContentTemplate>
	</asp:UpdatePanel>
</asp:Content>